import Cookies from 'js-cookie'

const TokenKey = 'SELLER_RMS_TOKEN'
const userInfoKey = 'SELLER_RMS_USER'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getUserInfo() {
  return Cookies.get(userInfoKey)
}

export function setUserInfo(token) {
  return Cookies.set(userInfoKey, token)
}

export function removeUserInfo() {
  return Cookies.remove(userInfoKey)
}
